<?php

class RSSkillRecord extends RSCharacterRecord
{
	public function __construct (& $values, $owner)
	{
		parent::__construct($values, $owner, array(
			'rank' => 'Rank',
			'level' => 'Level',
			'xp' => 'XP'));
	}

	public function setRank ($rank)
	{
		$this->values['rank'] = (int) $rank;
	}

	public function getRank ()
	{
		return $this->values['rank'];
	}

	public function setLevel ($level)
	{
		$this->values['level'] = (int) $level;
	}

	public function getLevel ()
	{
		return $this->values['level'];
	}

	public function setXP ($xp)
	{
		$this->values['xp'] = (int) $xp;
	}

	public function getXP ()
	{
		return $this->values['xp'];
	}

	public function __toString ()
	{
		return $this->getLevel();
	}
}